/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package v;

import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.GridBagLayout;
import javax.swing.JDialog;
import v.Evaluacion_View_Add.SetTerapiasMedicamentos;

/**
 *
 * @author nowxue
 */
public class VentanaNuevosElementos extends JDialog{

    public VentanaNuevosElementos(Frame owner, SetTerapiasMedicamentos nuevos , String titulo) {
        super(owner, titulo , true);
        NuevasTerMed_UI panel = new NuevasTerMed_UI(nuevos);
        panel.addActionListener(new Listener(){
            @Override
            public void ejecutarAccion(){
                VentanaNuevosElementos.this.dispose();
            }
        });
        add(panel);
        
        setLayout(new GridBagLayout());
        setSize(new Dimension(974, 735));
        setResizable(false);
    }
    
    public interface Listener{
        public void ejecutarAccion();
    }
}
